package com.bigdata.service.domain.bo;

import com.bigdata.common.core.validate.AddGroup;
import com.bigdata.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.bigdata.common.core.domain.BaseEntity;

/**
 * 地图预警业务对象 history_records
 *
 * @author ruoyi
 * @date 2025-08-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class HistoryRecordsBo extends BaseEntity {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空", groups = { EditGroup.class })
    private Long recordId;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 来源
     */
    @NotBlank(message = "来源不能为空", groups = { AddGroup.class, EditGroup.class })
    private String source;

    /**
     * 链接
     */
    @NotBlank(message = "链接不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 纬度(31.59)
     */
    @NotNull(message = "纬度(31.59)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal latitude;

    /**
     * 经度(130.55)
     */
    @NotNull(message = "经度(130.55)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal longitude;

    /**
     * 创建人名称
     */
//    @NotBlank(message = "创建人名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String createByName;

    /**
     *
     */
    private Long createUserId;

    /**
     * 分页大小
     */
    private Integer pageSize;

    /**
     * 当前页数
     */
    private Integer pageNum;

    private Date beginTime;
    private Date endTime;

    private String createBy;

}
